package com.snowfield.lb47.lbconfig.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 黑白名单配置对象 config_blackwhitelist
 *
 * @author snowfield
 * @date 2024-05-24
 */
public class BlackwhiteList extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 标识ID
     */
    @Excel(name = "标识ID")
    private Long id;

    /**
     * 黑白名单名称
     */
    @Excel(name = "黑白名单名称")
    private String listName;

    /**
     * 名单类型（white白名单 black黑名单）
     */
    @Excel(name = "名单类型", readConverterExp = "white=白名单,black=黑名单")
    private String listType;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setListName(String listName) {
        this.listName = listName;
    }

    public String getListName() {
        return listName;
    }

    public void setListType(String listType) {
        this.listType = listType;
    }

    public String getListType() {
        return listType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("listName", getListName())
                .append("ListType", getListType())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
